import { createApp } from 'vue'
import router from './router'
import App from './App.vue'
import 'element-plus/theme-chalk/index.css'
import ElementPlus from 'element-plus'
import * as ElIconModules from '@element-plus/icons-vue'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

const app = createApp(App)
app.use(router).use(ElementPlus, {
    size: 'small',
    locale: zhCn
}).mount('#app')
Object.keys(ElIconModules).forEach(function(key) {
    app.component(ElIconModules[key].name, ElIconModules[key])
})
  
